package com.chaoma.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chaoma.common.annotation.Excel;
import com.chaoma.common.core.domain.BaseEntity;

/**
 * 抄码信息对象 cm_factory
 *
 * @author chaoma
 * @date 2023-10-07
 */
public class CmFactory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 条码 */
    @Excel(name = "条码")
    private String code;

    /** 重量 */
    @Excel(name = "重量")
    private String weight;

    /** 长度 */
    @Excel(name = "长度")
    private Long lengthNum;

    /** 截取开始位置 */
    @Excel(name = "截取开始位置")
    private Long startNum;

    /** 截取结束位置 */
    @Excel(name = "截取结束位置")
    private Long endNum;

    /** 小数点位数 */
    @Excel(name = "小数点位数")
    private Long dotNum;

    /** 混扫编码 */
    @Excel(name = "混扫编码")
    private Long mixedNum;

    /** 混扫起始位置 */
    @Excel(name = "混扫起始位置")
    private Long mixedStartNum;

    /** 混扫结束位置 */
    @Excel(name = "混扫结束位置")
    private Long mixedEndNum;

    /** 磅转千克 */
    @Excel(name = "磅转千克")
    private String isTurn;

    /** 四舍五入 */
    @Excel(name = "四舍五入")
    private String isShe;

    /** 保留小数位 */
    @Excel(name = "保留小数位")
    private Long interceptNum;

    /** 工厂名称 */
    @Excel(name = "工厂名称")
    private String plantName;

    /** 规则 */
    @Excel(name = "规则")
    private String flag;

    /** 工厂 */
    @Excel(name = "工厂")
    private String factoryName;

    /** 设备号 */
    @Excel(name = "设备号")
    private String imei;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setCode(String code)
    {
        this.code = code;
    }

    public String getCode()
    {
        return code;
    }
    public void setWeight(String weight)
    {
        this.weight = weight;
    }

    public String getWeight()
    {
        return weight;
    }
    public void setLengthNum(Long lengthNum)
    {
        this.lengthNum = lengthNum;
    }

    public Long getLengthNum()
    {
        return lengthNum;
    }
    public void setStartNum(Long startNum)
    {
        this.startNum = startNum;
    }

    public Long getStartNum()
    {
        return startNum;
    }
    public void setEndNum(Long endNum)
    {
        this.endNum = endNum;
    }

    public Long getEndNum()
    {
        return endNum;
    }
    public void setDotNum(Long dotNum)
    {
        this.dotNum = dotNum;
    }

    public Long getDotNum()
    {
        return dotNum;
    }
    public void setMixedNum(Long mixedNum)
    {
        this.mixedNum = mixedNum;
    }

    public Long getMixedNum()
    {
        return mixedNum;
    }
    public void setMixedStartNum(Long mixedStartNum)
    {
        this.mixedStartNum = mixedStartNum;
    }

    public Long getMixedStartNum()
    {
        return mixedStartNum;
    }
    public void setMixedEndNum(Long mixedEndNum)
    {
        this.mixedEndNum = mixedEndNum;
    }

    public Long getMixedEndNum()
    {
        return mixedEndNum;
    }
    public void setIsTurn(String isTurn)
    {
        this.isTurn = isTurn;
    }

    public String getIsTurn()
    {
        return isTurn;
    }
    public void setIsShe(String isShe)
    {
        this.isShe = isShe;
    }

    public String getIsShe()
    {
        return isShe;
    }
    public void setInterceptNum(Long interceptNum)
    {
        this.interceptNum = interceptNum;
    }

    public Long getInterceptNum()
    {
        return interceptNum;
    }
    public void setPlantName(String plantName)
    {
        this.plantName = plantName;
    }

    public String getPlantName()
    {
        return plantName;
    }
    public void setFlag(String flag)
    {
        this.flag = flag;
    }

    public String getFlag()
    {
        return flag;
    }
    public void setFactoryName(String factoryName)
    {
        this.factoryName = factoryName;
    }

    public String getFactoryName()
    {
        return factoryName;
    }
    public void setImei(String imei)
    {
        this.imei = imei;
    }

    public String getImei()
    {
        return imei;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("weight", getWeight())
            .append("lengthNum", getLengthNum())
            .append("startNum", getStartNum())
            .append("endNum", getEndNum())
            .append("dotNum", getDotNum())
            .append("mixedNum", getMixedNum())
            .append("mixedStartNum", getMixedStartNum())
            .append("mixedEndNum", getMixedEndNum())
            .append("isTurn", getIsTurn())
            .append("isShe", getIsShe())
            .append("interceptNum", getInterceptNum())
            .append("plantName", getPlantName())
            .append("flag", getFlag())
            .append("factoryName", getFactoryName())
            .append("imei", getImei())
            .toString();
    }
}
